package com.bluecat.utils;
 
import java.util.HashMap;
import java.util.Map;
 
public class CommonMap {
	/** 状态编码转换 */
	public static Map<String, String> javaTypeMap = new HashMap<String, String>();
 
	static {
		initJavaTypeMap();
	}
 
	/**
	 * 返回状态映射
	 */
	public static void initJavaTypeMap() {
		javaTypeMap.put("tinyint", "Integer");
		javaTypeMap.put("smallint", "Integer");
		javaTypeMap.put("mediumint", "Integer");
		javaTypeMap.put("int", "Integer");
		javaTypeMap.put("integer", "integer");
		javaTypeMap.put("bigint", "Long");
		javaTypeMap.put("float", "Float");
		javaTypeMap.put("double", "Double");
		//javaTypeMap.put("decimal", "Double");
		javaTypeMap.put("decimal", "BigDecimal");
		javaTypeMap.put("bit", "Boolean");
		javaTypeMap.put("char", "String");
		javaTypeMap.put("varchar", "String");
		javaTypeMap.put("tinytext", "String");
		javaTypeMap.put("text", "String");
		javaTypeMap.put("mediumtext", "String");
		javaTypeMap.put("longtext", "String");
		javaTypeMap.put("time", "LocalDate");
		javaTypeMap.put("date", "LocalDate");
		javaTypeMap.put("datetime", "LocalDate");
		javaTypeMap.put("timestamp", "LocalDate");
 
		javaTypeMap.put("tablePrefix", "");// 前缀
		javaTypeMap.put("package", "com.paofu");//包名
		javaTypeMap.put("author", "liaoyong");//作者
		javaTypeMap.put("myname", "person-center-privoder");//作者
		javaTypeMap.put("jdk", "1.8");
		javaTypeMap.put("version", "1.0");
	}
}